/**
 * Copyright (C) 2013-2014 the original author or authors.
 */
package com.foreveross.bsl.mongodb.repository;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.data.mongodb.core.MongoTemplate;

/**
 * @description
 *
 * @author rening
 * @version v1.0
 *
 * @2013-5-31
 *
 */
public class MongodbTemplateConfig {
	
	private @Autowired MongodbFactoryConfig config;
	
	public @Bean MongoTemplate mongoTemplate() throws Exception {
	    return new MongoTemplate(config.mongoDbFactory());
	}
}
